WooCommerce\Square\Gateway\Gift_Card B

Total Complexity 87
Dependencies 17
Dependents 5
Total lines 656
Lines of code 386
Logical lines of code 186
Comment lines 195
Methods 23
Properties 1

Methods 23

Method Rating Maintainability Complexity Lines of code
add_gift_card_fragments()
D
26
26 178
enqueue_scripts()
A
44 11 42
add_gift_card_image_placeholder()
A
44 9 43
does_checkout_support_gift_card()
S
64 6 9
cart_contains_upon_release_pre_order()
S
62 5 11
cart_contains_gift_card()
S
62 4 12
delete_gift_card_image_placeholder()
S
61 4 12
apply_gift_card()
S
64 3 9
__construct()
S
55 1 19
is_new()
S
76 2 3
is_load()
S
76 2 3
get_application_id()
S
68 2 7
get_api()
S
66 2 8
do_payment_method_transaction()
S
82 1 3
init_form_fields()
S
81 1 3
get_default_description()
S
79 1 3
get_default_title()
S
79 1 3
init_payment_tokens_handler()
S
91 1 2
get_method_form_fields()
S
82 1 3
remove_gift_card()
S
76 1 4
delete_sessions()
S
80 1 3
is_configured()
S
82 1 3
is_gift_card_enabled()
S
78 1 3